function CheckLogin() {
    var Uname = window.localStorage.getItem("Uname");
    var Uid = window.localStorage.getItem("Uid");
	var root = window.localStorage.getItem("root");
   	if (Uname!=null&&Uid!=null){
		console.log("已登录");
		document.getElementsByClassName("unLogin")[0].style.display="none";
		document.getElementsByClassName("unLogin")[1].style.display="none";
		document.getElementsByClassName("Logining")[0].style.display="block";
		if(root==1)
		document.getElementsByClassName("AdminLogin")[0].style.display="block";
	}else {
		console.log("未登录");
		document.getElementsByClassName("unLogin")[0].style.display="block";
		document.getElementsByClassName("unLogin")[1].style.display="block";
		document.getElementsByClassName("Logining")[0].style.display="none";
		document.getElementsByClassName("AdminLogin")[0].style.display="none";
    }
}
CheckLogin();